package cn.lkp.mall.member.service;

import cn.lkp.mall.member.exception.PhoneExitException;
import cn.lkp.mall.member.exception.UsernameExitException;
import cn.lkp.mall.member.vo.MemberLoginVo;
import cn.lkp.mall.member.vo.MemberRegisterVo;
import cn.lkp.mall.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.lkp.common.utils.PageUtils;
import cn.lkp.mall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author lkp
 * @email 271309236@qq.com
 * @date 2020-11-11 14:31:07
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo vo);

    void checkUsernameUnique(String username) throws UsernameExitException;

    void checkPhoneUnique(String phone) throws PhoneExitException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity oauthLogin(SocialUser vo) throws Exception;
}

